package com.by.bean;

import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel("字典")
public class Dict {
    int id;

    @NotBlank(message = "编码不能为空！")
    String code;

    @NotBlank(message = "name不能为空！")
    String name;
    int pid;
    int sorts;
}